//Stephen Kirksharian
//Robert Harkreader
//CPSC 321
//DUE 4/27/08


//This will be our Register destination

//opcode for Rtype
`define Rtype 6'b000000   

//opcode for jal instruction 
`define jalType 6'b000011  

module regDest(opcodes,regdestcounter);
	
	input [5:0] opcodes;
	output [1:0]regdestcounter;
	
	reg [1:0]regdestcounter;


	always @(opcodes) begin
		case(opcodes)
		`Rtype: begin
		  regdestcounter=2'b01;
		  end
		`jalType: begin
		  regdestcounter=2'b10;  
		  end
		default: begin
		  regdestcounter=2'b00;
		  end
		endcase

	end	
	
endmodule

